﻿using KPI.Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace CssdAssistantClient.Views
{
    /// <summary>
    /// ViewMyWorkbench.xaml 的交互逻辑
    /// </summary>
    public partial class ViewMyWorkbench : UserControl
    {
        #region Event_SwitchSystem
        public event Action<int> Event_SwitchSystem;
        private void FireEvent_SwitchSystem(int data)
        {
            Event_SwitchSystem?.Invoke(data);
        }
        #endregion

        public ViewMyWorkbench()
        {
            InitializeComponent();
        }

        private void WorkbenchItem_Event_OnClick()
        {

        }

        private void Item_Event_OnClick_GoUserManager()
        {
            KPIData.ExamType = KPI.Entity.EnumExamType.None;
            KPIData.CssdSystem = KPI.Entity.EnumCssdSystems.UserManager;
            FireEvent_SwitchSystem(0);
        }

        private void Item_Event_OnClick_GoNaireManager()
        {
            KPIData.ExamType = KPI.Entity.EnumExamType.Naire;
            KPIData.CssdSystem = KPI.Entity.EnumCssdSystems.NaireManager;
            FireEvent_SwitchSystem(1);
        }

        private void Item_Event_OnClick_Go_LearnManager()
        {
            KPIData.ExamType = KPI.Entity.EnumExamType.Learning;
            KPIData.CssdSystem = KPI.Entity.EnumCssdSystems.LearnManager;
            FireEvent_SwitchSystem(2);
        }

        private void Item_Event_OnClick_Go_TestManager()
        {
            KPIData.ExamType = KPI.Entity.EnumExamType.Test;
            KPIData.CssdSystem = KPI.Entity.EnumCssdSystems.TestManager;
            FireEvent_SwitchSystem(3);
        }
    }
}
